<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>pvsdisp</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="pvsdiskin.html" title="pvsdiskin" />
    <link rel="next" href="pvsfilter.html" title="pvsfilter" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">pvsdisp</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="pvsdiskin.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="pvsfilter.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="pvsdisp"></a>
      <div class="titlepage"></div>
      <a id="Indexpvsdisp" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">pvsdisp</span>
        </h2>
        <p>pvsdisp — 
      Displays a PVS signal as an amplitude vs. freq graph.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp138461424"></a>
        <h2>Description</h2>
        <p>
      This opcode will display a PVS signal fsig. Uses X11 or  FLTK windows if enabled, else 
	  (or if <a class="link" href="CommandFlags.html#FlagsMinusLowerG"><em class="citetitle">-g</em></a> flag is set) 
	  displays are approximated in ASCII characters.
    </p>
      </div>
      <div class="refsect1">
        <a id="idp138530064"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>pvsdisp</strong></span> fsig[, ibins, iwtflg] </pre>
      </div>
      <div class="refsect1">
        <a id="idp138532144"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>iprd</em></span> -- the period of pvsdisp in seconds.
    </p>
        <p>
      <span class="emphasis"><em>ibins</em></span> (optional, default=all bins) -- optionally, display only ibins bins. 
	  </p>
        <p>
      <span class="emphasis"><em>iwtflg</em></span> (optional, default=0) -- wait flag. 
	  If non-zero, each pvsdisp is held until released by the user. The default value is 0 (no wait).
    </p>
      </div>
      <div class="refsect1">
        <a id="idp138535984"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>pvsdisp</em></span> -- displays the PVS signal frame-by-frame. 
	</p>
      </div>
      <div class="refsect1">
        <a id="idp138537728"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the pvsdisp opcode. It uses the file <a class="ulink" href="examples/pvsdisp.csd" target="_top"><em class="citetitle">pvsdisp.csd</em></a>. This example uses realtime input, but you can also use it for soundfile input.
      </p>
        <div class="example">
          <a id="idp138539664"></a>
          <p class="title">
            <strong>Example 686. Example of the pvsdisp opcode</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
<span class="comment">; Audio out   Audio in</span>
-odac           -iadc    <span class="comment">;;;RT audio I/O</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o pvsdisp.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">kr</span> <span class="op">=</span> 4410
<span class="ohdr">ksmps</span> <span class="op">=</span> 10
<span class="ohdr">nchnls</span> <span class="op">=</span> 1

<span class="oblock">instr</span> 1
asig <span class="opc">inch</span> 1
<span class="comment">;a1   soundin "input.wav"  ;select a soundifle</span>
fsig <span class="opc">pvsanal</span> asig, 1024,256, 1024, 1
<span class="opc">pvsdisp</span> fsig

<span class="oblock">endin</span>

<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>

<span class="stamnt">i</span> 1 0 30
<span class="stamnt">e</span>

<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1">
        <a id="idp138543856"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="pvsanal.html" title="pvsanal"><em class="citetitle">pvsanal</em></a>,
      <a class="link" href="pvsynth.html" title="pvsynth"><em class="citetitle">pvsynth</em></a>,
      <a class="link" href="dispfft.html" title="dispfft"><em class="citetitle">dispfft</em></a>,
      <a class="link" href="print.html" title="print"><em class="citetitle">print</em></a>,
      <a class="link" href="pvsadsyn.html" title="pvsadsyn"><em class="citetitle">pvsadsyn</em></a>
    </p>
      </div>
      <div class="refsect1">
        <a id="idp138549808"></a>
        <h2>Credits</h2>
        <p> Author: Victor Lazzarini, 2006 </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="pvsdiskin.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="pvsfilter.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">pvsdiskin </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> pvsfilter</td>
        </tr>
      </table>
    </div>
  </body>
</html>
